home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
7661
/
7661.xpi
/
chrome
/
isreaditlater.jar
/
content
/
RILsidebar.js
< prev
next >
Wrap
Text File
|
2009-12-10
|
1KB
|
42 lines
function RILsidebar() {
}
RILsidebar.prototype = {
_init : function(mainWindow) {
try {
this.w = mainWindow;
document.getElementById('RIL_sidebar_wrapper').appendChild( document.getElementById('RIL_list_inner') );
document.getElementById('RIL_list').setAttribute('id', '');
document.getElementById('RIL_sidebar_wrapper').setAttribute('id', 'RIL_list');
this.loadScript('RIL');
this.loadScript('RILshare');
RIL.init();
}catch(e) { Components.utils.reportError(e); }
},
init : function() {
try {
RIL.openReadingList();
} catch(e) { Components.utils.reportError(e); }
},
loadScript : function(jsFile) {
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader)
.loadSubScript("chrome://isreaditlater/content/"+jsFile+".js");
},
}
var RILsidebar = new RILsidebar();
window.addEventListener("load", function() { RILsidebar.init(); }, false);